package com.smile.model.response.response;

import cn.hutool.core.lang.tree.Tree;
import com.smile.commons.tree.TreeNode;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@ToString
public class GetOrganizationByUserIdResponseDTO implements Serializable, TreeNode<Long> {
    private static final long serialVersionUID = 1L;
    private Long id;
    private String organizationName;
    /**
     * 父级标识
     *  0: 非父级 （默认）
     *  1: 父级
     */
    private Integer parentFlag = 0;
    /**
     * disabled 0:正常 1:禁用
     */
    private Integer disabled = 1;
    /**
     * 祖籍字段
     */
    private String ancestors;
    private Integer sort;
    private String chargeName;
    private Boolean status;
    private Long parentId;
//    private List<GetOrganizationByUserIdResponseDTO> children;
    private List<TreeNode<Long>> children = new ArrayList<>();

}
